CREATE TABLE [agency].[Configuration]
(
[ConfigurationId] [int] NOT NULL IDENTITY(1, 1),
[ConfigurationTypeId] [int] NOT NULL,
[Code] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Name] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Value] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DispalyOrder] [int] NOT NULL,
[Active] [bit] NOT NULL,
[Deleted] [bit] NOT NULL,
[CreatedBy] [int] NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[ModifiedBy] [int] NULL,
[ModifiedOn] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [agency].[Configuration] ADD CONSTRAINT [PK_Configuration] PRIMARY KEY CLUSTERED  ([ConfigurationId]) ON [PRIMARY]
GO
ALTER TABLE [agency].[Configuration] ADD CONSTRAINT [FK_Configuration_ConfigurationType] FOREIGN KEY ([ConfigurationTypeId]) REFERENCES [agency].[ConfigurationType] ([ConfigurationTypeId])
GO
